package top.coolrainly.module.resource.controller.admin.group.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import top.coolrainly.module.resource.dal.dataobject.content.ResourceContentDO;

@Schema(description = "管理后台 - Web3D 资源 分组新增/修改 Request VO")
@Data
public class ResourceGroupSaveReqVO {

    @Schema(description = "分组id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26738")
    private Long id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "父节点")
    private Long parent;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "Web3D 资源 内容列表")
    private List<ResourceContentDO> contents;

}